/*cnpm install express --save*/
/*cnpm install cors --save*/

var Express = require('express')
var cors=require('cors')
var app = new Express();
var userRouter = require('./router/user')

app.use(cors());

app.use('/user',userRouter);
var server=app.listen('3000','localhost',function (req,res) {

    var host= server.address().address;
    var post=server.address().port;

    console.log('the server in running on http://%s:%s',host,post);

})
